<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>

</body>
</html>

<script>
	var a = prompt("输入第一个数");
	var b = prompt("输入第二个数");
	a = parseInt(a);
	b = parseInt(b);
	if (a>=b) {
		alert("两个数的最大值是"+a);
	}else{
		alert("两个数的最大值是"+b);
	}
</script>